/**
 * @Author: Wang chunsheng  email:2192138785@qq.com
 * @Date:   2021-10-30 10:40:38
 * @Last Modified by:   Wang chunsheng  email:2192138785@qq.com
 * @Last Modified time: 2024-09-28 00:43:12
 */
import request from '@projectName/utils/request'

export function saveBaidu(data) {
  return request({
    url: '/system/config/baidu',
    method: 'post',
    data: data
  })
}

export function checkLocalLicenseExist(data) {
  return request({
    url: '/diandi_subscription/cloud/version/check-local-license-exist',
    method: 'post',
    data: data
  })
}

export function checkConnection(data) {
  return request({
    url: '/diandi_subscription/cloud/version/check-connection',
    method: 'get',
    params: data
  })
}

export function checkUpdate(data) {
  return request({
    url: '/diandi_subscription/cloud/version/check-update',
    method: 'post',
    data: data
  })
}

export function download(data) {
  return request({
    url: '/diandi_subscription/cloud/version/download',
    method: 'post',
    data: data
  })
}

export function getLatestVersion(data) {
  return request({
    url: '/diandi_subscription/cloud/version/latest-version',
    method: 'post',
    data: data
  })
}

// activate-license
export function activateLicense(data) {
  return request({
    url: '/diandi_subscription/cloud/version/activate-license',
    method: 'post',
    data: data
  })
}

// verify-license
export function verifyLicense(data) {
  return request({
    url: '/diandi_subscription/cloud/version/verify-license',
    method: 'post',
    data: data
  })
}

// info
export function versionInfo(data) {
  return request({
    url: '/diandi_subscription/cloud/version/info',
    method: 'get',
    params: data
  })
}
